using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace thirteen
{
    /// <summary>
    /// generate by msg tool
    /// 解散房间结束消息
    /// </summary>
	public class ResDisbandRoomOverMsg : ResMessage
	{
		//0:解散失败,非0:解散成功
		public int success;

        public ResDisbandRoomOverMsg() { }

        public ResDisbandRoomOverMsg(int success)
        {
            this.success = success;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushInt(success);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			success = b.toInt32();
			
		}

		public int Id
		{
            get { return 621203; }
		}

        public String Desc
        {
            get { return "解散房间结束消息"; }
        }
	}
}